package com.opal.system.entity;

import java.util.List;

/**
 * 签卡单删除功能：条件实体类
 * @author zt082
 *
 */
public class ConditionSelectTbmSignhEntity {
	private String pkOrg;     //条件组织id
//	private String pkDeptV;     //部门条件
	private List<String> pkDeptVs;     //部门条件
	private List<String> pkDepts;	  //部门id，此属性用于需要查询出pkDeptV
	private String billCode;     //条件签卡单号
	private String pkPsndoc;    //条件 人员主键
	private String beginSignDate;  //日期开始条件  
	private String endSignDate;		//日期结束条件  
	private String psndocCode;		//员工工号     条件模糊查询
	private String psndocName;		//员工姓名     条件模糊查询
	private Integer rows;        //显示当前行数
	private Integer page;        // 显示当前页数
	
	
	public Integer getRows() {
		return rows;
	}
	public void setRows(Integer rows) {
		this.rows = rows;
	}
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public String getPkOrg() {
		return pkOrg;
	}
	public void setPkOrg(String pkOrg) {
		if("".equals(pkOrg)) {
			this.pkOrg = null;
		}else {
			this.pkOrg = pkOrg;
		}
	}
	public String getBillCode() {
		return billCode;
	}
	public void setBillCode(String billCode) {
		if("".equals(billCode)) {
			this.billCode = null;
		}else {
			this.billCode = billCode;
		}
	}

	public  void processingPageOracle(Integer page,Integer rows){
		if(page ==null) {
			page=1;
		}
		if(rows ==null) {
			rows=10;
		}
		this.page=page*rows-rows;
		this.rows=rows*page;
	}
	
//	public String getPkDeptV() {
//		return pkDeptV;
//	}
//	public void setPkDeptV(String pkDeptV) {
//		if("".equals(pkDeptV)) {
//			this.pkDeptV = null;
//		}else {
//			this.pkDeptV = pkDeptV;
//		}
//	}
	
	public List<String> getPkDeptVs() {
		return pkDeptVs;
	}
	public void setPkDeptVs(List<String> pkDeptVs) {
		this.pkDeptVs = pkDeptVs;
	}
	public List<String> getPkDepts() {
		return pkDepts;
	}
	public void setPkDepts(List<String> pkDepts) {
		this.pkDepts = pkDepts;
	}
	public String getPkPsndoc() {
		return pkPsndoc;
	}
	
//	public void setPkPsndoc(String pkPsndoc) {
//		if("".equals(pkPsndoc) || "请先选择部门".equals(pkPsndoc)) {
//			this.pkPsndoc = null;
//		}else {
//			this.pkPsndoc = pkPsndoc;
//		}
//	}
	public void setPkPsndoc(String pkPsndoc) {
		if(pkPsndoc == null || "".equals(pkPsndoc)) {
			this.pkPsndoc = null;
		}else {
			this.pkPsndoc = "%"+pkPsndoc+"%";
		}
	}
	
	public String getBeginSignDate() {
		return beginSignDate;
	}
	
	public void setBeginSignDate(String beginSignDate) {
		if("".equals(beginSignDate)) {
			this.beginSignDate = null;
		}else {
			this.beginSignDate = beginSignDate;
		}
	}
	
	public String getEndSignDate() {
		return endSignDate;
	}
	
	public void setEndSignDate(String endSignDate) {
		if("".equals(endSignDate)) {
			this.endSignDate = null;
		}else {
			this.endSignDate = endSignDate;
		}
	}
	
	public String getPsndocCode() {
		return psndocCode;
	}
	
	public void setPsndocCode(String psndocCode) {
		if(psndocCode == null || "".equals(psndocCode)) {
			this.psndocCode = null;
		}else {
			this.psndocCode = "%"+psndocCode+"%";
		}
	}
	
	public String getPsndocName() {
		return psndocName;
	}
	
	public void setPsndocName(String psndocName) {
		if(psndocName == null || "".equals(psndocName)) {
			this.psndocName = null;
		}else {
			this.psndocName = "%"+psndocName+"%";
		}
	}
	
}
